home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15754 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.production.compuserve.com!news
  2. From: John Clemens <75343.1203@CompuServe.COM>
  3. Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.programmer
  4. Subject: 64k Virtual memory page...
  5. Date: 6 Apr 1996 21:02:46 GMT
  6. Organization: my home....
  7. Message-ID: <4k6m5m$542$2@mhadg.production.compuserve.com>
  8.  
  9. Hi...I'm trying to set up a 64000 byte area of memory that i can 
  10. then use as a virtual page to flip into the 0xA000 video memory 
  11. area.  I;m using TC++ v3.0 for dos.  I;m using the huge memory 
  12. module...
  13.  
  14. I've tried malloc, I've tried 'unsigned char vir_page[64000];', 
  15. and even if the program doesn't crash at those lines, it crashes 
  16. when it reaches the assembly routine to flip the pages.  the 
  17. machine starts to draw the image, then locks solid after a few 
  18. tries, which tells me i'm stomping on some memory i shouldn't be.
  19.  
  20. i realise this isn't much to go on, but can anyone give me some 
  21. help? or any suggestions? anything?
  22.  
  23. -- 
  24. -----------
  25. "Daddy, why won't this magnet pick up this floppy disk?"
  26.     John Clemens - Student Extrodinare (not in spelling)
  27.             75343.1203@compuserve.com <for now>
  28.